#App {
    height: 100vh;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow: hidden;
}

.control-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.8rem;
    margin: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.directory-input {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 3;
    min-width: 400px;
}

.directory-input input {
    flex: 1;
    min-width: 250px;
}

.port-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 120px;
}

.port-control label {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.port-control input {
    width: 80px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex: 2;
    min-width: 250px;
    justify-content: flex-end;
}

.status-tag {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 80px;
    justify-content: center;
}

.status-indicator {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.status-indicator.idle {
    background: rgba(158, 158, 158, 0.3);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(158, 158, 158, 0.5);
}

.status-indicator.ready {
    background: rgba(76, 175, 80, 0.3);
    color: #81c784;
    border-color: rgba(76, 175, 80, 0.5);
}

.status-indicator.running {
    background: rgba(33, 150, 243, 0.3);
    color: #64b5f6;
    border-color: rgba(33, 150, 243, 0.5);
}

.status-indicator.error {
    background: rgba(244, 67, 54, 0.3);
    color: #ef5350;
    border-color: rgba(244, 67, 54, 0.5);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

.btn-success {
    background: linear-gradient(45deg, #2196F3, #1976D2);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
}

.btn-success:hover {
    background: linear-gradient(45deg, #1976D2, #2196F3);
}

.input {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.input:hover {
    background: rgba(255, 255, 255, 1);
}

.input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}


.btn-danger {
    background: linear-gradient(45deg, #f44336, #d32f2f);
}

.btn-danger:hover {
    background: linear-gradient(45deg, #d32f2f, #f44336);
}

.btn-warning {
    background: linear-gradient(45deg, #ff9800, #f57c00);
}

.btn-warning:hover {
    background: linear-gradient(45deg, #f57c00, #ff9800);
}

.btn-info {
    background: linear-gradient(45deg, #2196F3, #1976D2);
}

.btn-info:hover {
    background: linear-gradient(45deg, #1976D2, #2196F3);
}

.btn-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.environment-check {
    display: flex;
    align-items: center;
}

.env-details-panel {
    width: calc(100% - 1rem);
    margin: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.env-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.env-details-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
}

.env-details-content {
    padding: 1rem;
    flex: 1;
}

.env-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.env-status-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
}

.env-status-item.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.env-status-item.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.env-status-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.env-status-text {
    font-weight: 600;
    font-size: 1rem;
}

.env-detail-item {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
}

.env-detail-item strong {
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-bottom: 0.3rem;
}

.env-guidance {
    margin-top: 1rem;
}

.env-guidance strong {
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-bottom: 0.8rem;
}

.guidance-text {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.browser-container {
    width: calc(100% - 1rem);
    height: calc(100vh - 60px);
    margin: 0 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.browser-frame {
    flex: 1;
    width: 100%;
    background: white;
    min-height: 400px;
}

.browser-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

@media (max-width: 768px) {
    .control-panel {
        padding: 0.8rem;
        margin: 0.5rem;
    }
    
    .control-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .directory-input {
        flex-direction: column;
        min-width: auto;
        align-items: stretch;
    }
    
    .directory-input input {
        min-width: auto;
    }
    
    .port-control {
        justify-content: space-between;
    }
    
    .action-buttons {
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .status-tag {
        margin-top: 0.5rem;
    }
    
    .browser-container {
        width: calc(100% - 1rem);
        height: calc(100vh - 140px);
        margin: 0 0.5rem;
    }
    
        
    .browser-frame {
        min-height: 300px;
    }
}